#ifndef __DEBUG_H__
#define __DEBUG_H__


#define get_filename(x) (strrchr(x,'/')?strrchr(x,'/')+1:x)


#if  0
#define log_i(...)
#else
#define log_i(...) (printf("L%04d(%s):", __LINE__, get_filename(__FILE__)),   \
                                 printf(__VA_ARGS__)  )
#endif



#if  1
#define log_d(...)
#else
#define log_d(...) (printf("L%04d(%s):", __LINE__, get_filename(__FILE__)),   \
                                 printf(__VA_ARGS__)  )
#endif


#if  0
#define log_e(...)
#else
#define log_e(...) (printf("L%04d(%s):", __LINE__, get_filename(__FILE__)),   \
                                 printf(__VA_ARGS__)  )
#endif


#if  1
#define log_n(...)
#else
#define log_n(...) (printf("L%04d(%s):", __LINE__, get_filename(__FILE__)),   \
                                 printf(__VA_ARGS__)  )
#endif




#endif

